* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font:bold 20px "Courier";
}


#main {
    display: flex;
    // 主轴方向
    flex-flow: column;
    align-items: center;
    justify-content: space-around;
    
    width: 360px;
    height: 420px;
    background-color: #b7d4a8;
    margin: 100px auto;
    border: 10px solid black;
    border-radius: 20px;
}
.stage {
    width: 304px;
    height: 304px;
    border: 2px solid black;
    position: relative;

    #snake>div {
        width: 10px;
        height: 10px;
        background: black;
        border: 1px solid #b7d4a8;
        position: absolute;
    }
    #food {
        width: 10px;
        height: 10px;
        
        border: 1px solid #b7d4a8;
        position: absolute;
        top: 40px;
        left: 40px;
        display: flex;
        flex-flow: row wrap;
        justify-content: space-between;
        align-content: space-between;
        >div {
            width: 4px;
            height: 4px;
            background: red;
            transform: rotate(45deg);
        }
    }
}
#score-panel {
    width: 300px;
    display: flex;
    justify-content: space-between;
}